package edu.pg.ipse.utils;

import java.io.PrintStream;
import java.io.UnsupportedEncodingException;

import org.apache.log4j.Logger;

public class Utils {

	private static final Logger logger = Logger.getRootLogger();
	
	private static PrintStream russianPrintStream;
	
	static {
		try {
			russianPrintStream = new PrintStream(System.out, false, "Cp866");
		} catch (UnsupportedEncodingException e) {
			System.out.println("Unable to setup console codepage: " + e);
		}
	}
	
	/**
	 * @param message
	 */
	public static void printOnScreen(String message) {
		
		russianPrintStream.print(message);
//		System.out.print(message);
	}
}
